﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ext.Master" AutoEventWireup="true" CodeBehind="Ext.HtmlEditor.aspx.cs" Inherits="Demo.HtmlEditor.Ext_HtmlEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        Ext.onReady(function () {
            Ext.tip.QuickTipManager.init();  // enable tooltips
            var editor = Ext.create('Ext.form.HtmlEditor', {
                width: 580,
                height: 250,
                value:'<a href="http://www.baidu.com">百度<a/>',
                renderTo: 'content'
            });

            var btn = Ext.create('Ext.Button', {
                text: '确定',
                renderTo: 'btnOK',
                handler: function () {
                    alert(editor.getValue());
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content"></div>
    <div id="btnOK"></div>
</asp:Content>
